Skip to content

Conversation

@sebastian-carpenter
Copy link

@sebastian-carpenter sebastian-carpenter commented May 30, 2025

Some arrays have strings used to initialize them with explicit null terminators as padding. This padding method causes gcc to throw warnings so I removed it. Conforming C compilers should automatically fill the rest of the array slots with null terminators.

my compiler info:
gcc version 15.1.1 20250425 (Red Hat 15.1.1-1) (GCC)

@sebastian-carpenter
Copy link
Author

Jenkins rerun this test please

1 similar comment
@lealem47
Copy link
Contributor

Jenkins rerun this test please

@JacobBarthelmeh
Copy link
Contributor

Retest this please Jenkins. "Fips Check" history unavailable.

This looks to solve a "make check" failure with wolfCLU. Is it ready for review?

gcc throws a warning when an array is initialized with a string of equal size that has explicit null terminators. To fix this I just removed trailing null terminators on the string since they will be inserted by C conforming compilers anyway.
@JacobBarthelmeh JacobBarthelmeh merged commit 6d8fc3e into wolfSSL:main Jul 24, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants